//
//  WYMediaType.m
//  CirclePush
//
//  Created by admin on 2018/5/8.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYMediaType.h"

@implementation WYMediaType
+(NSArray *)getMediaTypeFromJson:(id)json
{
    return [WYMediaType mj_objectArrayWithKeyValuesArray:json];
}
+(NSArray *)getMediaLsit
{
   NSArray *_imageArray = @[@"icon_outdoors",@"iocn_television",@"icon_newMedia",@"icon_Print",@"icon_ Radio",@"icon_ video",@"icon_network",@"icon_Magazine",@"icon_ device",@"iocn_home_more"];
   NSArray *_nameArray = @[@"户外",@"电视",@"新媒体",@"纸媒",@"广播",@"视频",@"网络",@"杂志",@"设备",@"更多"];
    NSMutableArray *array = [[NSMutableArray alloc]init];
   
    for (int i=0; i<_imageArray.count; i++) {
        WYMediaType *type = [[WYMediaType alloc]init];
        type.id = [NSString stringWithFormat:@"%d",i+1];
        type.mediaTypeName = _nameArray[i];
        type.image = _imageArray[i];
        [array addObject:type];
    }
    
 //   WYMediaType *type1 = [[WYMediaType alloc]init];
    
//    type1.mediaTypeName = @"";
    
    
    return array;
    
}


@end
